import { _decorator, Component, instantiate, Node, Prefab } from 'cc';
import { PrefabCfg } from '../../../auto/PrefabCfg';
import { Match3ZiUE } from './Match3ZiUE';
const { ccclass, property } = _decorator;

@ccclass('Match3UI')
export class Match3UI extends Component {
    async start() {
        console.log("主玩法页面");
        let prefab = await gtr.res.loadAssetAsync(PrefabCfg.Match3ZiUE, Prefab);
        let ziNode = instantiate(prefab);
        ziNode.setParent(this.node);
        let ziUE: Match3ZiUE = ziNode.getComponent(Match3ZiUE);
        ziUE.init();
    }


}


